import Mock from 'mockjs'


const data = Mock.mock({
  'list|3': [{
    "title": '轮播',
    "children|10": [{
      'title': '@ctitle',
      'id': '@id',
      'logo': '@image(100x100, @color, @cname)',
      'site': 'http://www.baidu.com',
    }]
  }]
})

Mock.mock('/api/list', () => ({
  code: 200,
  data: data.list
}))